package com.gpj.learn.springcloud.feign.service;

import com.gpj.learn.springcloud.api.CommonServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @className FeignService
 * @description
 *   TODO
 * @author GPJ
 * @date 2021/10/28 15:28
 * @version 1.0
 **/
@Service
public class FeignService {
	@Autowired
	private CommonServer server;

	public String infoTest(Integer id){
		return server.info(id);
	}

	public void receiveTest(String message){
		server.receive(message);
	}
}
